package org.lewis.web.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
	
	//private UserService userService;
	

	@RequestMapping("/index")
	public String index(Model model) {
		//List<User> userList=userService.getAllUsers();
		//model.addAttribute("userList", userList);
		return "index";
	}
	
	@RequestMapping("/user/add")
	public void addUser(){
		for(int i=0;i<1000;i++){
			//User user=new User();
			//user.setAge(i);
			//user.setName("test_"+i);
			//userService.saveUser(user);
		}
	}
	
	@RequestMapping("/admin/home")
	public String adminHome(){
		return "admin/home";
	}
	
	@RequestMapping("/admin/welcome")
	public String adminWelcome(){
		return "admin/welcome";
	}

}
